package com.wang.provider.api.client;

import com.wang.provider.api.model.Provider;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: wangning
 * @date: 2023/12/25 13:52
 */
@FeignClient(name = "provider", url = "localhost:8081")
public interface ProviderClient {
    @GetMapping("/provider/{id}")
    Provider selectOne(@PathVariable("id") Integer id);
}
